
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGBackground.h>
#include <OpenSG/OSGBackgroundBase.h>
#include <OpenSG/OSGViewport.h>
#include <OpenSG/OSGDrawAction.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Background_dump_overloads_0_2, dump, 0, 2)


}// namespace 


// Module ======================================================================
void Export_src_pyste_gen_Background()
{
    class_< osg::BackgroundBase, bases< osg::AttachmentContainer > , boost::noncopyable >("BackgroundBase", no_init)
//        .def_readonly("MTInfluenceMask", &osg::BackgroundBase::MTInfluenceMask)
        .def("getClassType", &osg::BackgroundBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::BackgroundBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::BackgroundBase::*)() )&osg::BackgroundBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::BackgroundBase::*)() const)&osg::BackgroundBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::BackgroundBase::getContainerSize)
        .def("getBinSize", &osg::BackgroundBase::getBinSize)
        .def("copyToBin", &osg::BackgroundBase::copyToBin)
        .def("copyFromBin", &osg::BackgroundBase::copyFromBin)
        .staticmethod("getClassType")
        .staticmethod("getClassTypeId")
    ;

    class_< osg::Background, bases< osg::BackgroundBase > , boost::noncopyable, osg::BackgroundRefPtr >("Background", no_init)
        .def("getClassname", &osg::Background::getClassname)
        .def("clear", &osg::Background::clear)
        .def("changed", &osg::Background::changed)
        .def("dump", &osg::Background::dump, osg_Background_dump_overloads_0_2())
        .staticmethod("getClassname")
    ;


    register_ptr_to_python<osg::BackgroundPtr>();
    implicitly_convertible<osg::BackgroundRefPtr, osg::BackgroundPtr>();
    implicitly_convertible<osg::BackgroundPtr, osg::AttachmentContainerPtr>();
    
    def("RefPtr", &pyopensg::ToRefPtr<osg::BackgroundPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::BackgroundPtr>);
}

